{% extends "index.html" %} 

{% block title %}Administration{% endblock %}

{% block head %}
<link href="/static/css/toolbar.css" rel="stylesheet" type="text/css" />
{% endblock %}

{% block content %}
<div class="panel">
	<form method="post" action="/admin/entity/{{ actionUrl }}/">
	<div class="hd">
		<div class="toolBar">
			<a class="toolBarButton add" href="/admin/entity/{{ actionUrl }}/add">Add</a>
			<input name="btnDelete" id="btnDelete" type="submit" class="toolBarButton remove" value="Delete" />
		</div>
	</div>
	<div class="bd">
		{% block entity_list %}
			<ul class="entities">
				{% for entity in list %}
        		<li>
        			<input class="entity" type="checkbox" name="entity" value="{{ entity.key.id }}" id="chb{{ forloop.counter }}"/>
        			<a href="/admin/entity/{{ actionUrl }}/{{ entity.key.id }}" >
        				{{ entity.title|stringformat:"s"|addslashes  }}</a>
        		</li>
      			{% endfor %} 
			</ul>
		{% endblock %}
	</div>
	</form>
</div>

{% endblock %}

{% block lpanel %}
{{ block.super }}
<div></div>
{% endblock %}

{% block rpanel %}{% endblock %}
  
{% block scripts %}{% endblock %}